C# xml 에 쓰고 읽기

기본 적인 using 추가 using System.Xml; using System.Xml; 쓰기 부분   private void SaveXML() { string sFilePath = System.IO.Directory.GetCurrentDirectory();   try { XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = true; settings.NewLineOnAttributes = true; XmlWriter xmlWriter = XmlWriter.Create(sFilePath + "/config.xml"); xmlWriter.WriteStartDocument();   xmlWriter.WriteStartElement("root"); xmlWriter.WriteElementString("IP", "192.168.100.136"); xmlWriter.WriteElementString("PORT", "3333"); xmlWriter.WriteEndDocument();   xmlWriter.Flush(); xmlWriter.Close(); } catch (Exception ex) { … C# xml 에 쓰고 읽기 계속 읽기